<%@ page import="MyBean.ChuFangDrug" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">a {text-decoration: none}</style>
</head>
<body {
	background="img/背景.png " ;
	style=" background-repeat:no-repeat ;
    background-size:100% 100%; 
    background-attachment: fixed;" 
} >
<% request.setCharacterEncoding("utf-8");
	List<ChuFangDrug> list = (List<ChuFangDrug>)request.getAttribute("list2");
	Iterator<ChuFangDrug> iter = list.iterator();
%>
<hr>
<center>
<h1>
<font size="3" color="red">田园住院系统</font>
<font size="3" color="purple">查询界面</font>
</h1>
</center>
<hr>
<br><br>
<table border="1" align="center">
<tr><th>住院号</th><th>药品名称</th><th>单价</th><th>用法</th></tr>
<% while(iter.hasNext()){ 
     ChuFangDrug cfd = iter.next();
 %>
<tr>
<th><%=cfd.getAdmissionNumber() %></th><th><%=cfd.getDrugName() %></th><th><%=cfd.getDrugPrice() %></th><th><%=cfd.getDosage() %></th>
</tr>
<%} %>
<tr><th colspan="4"><a href="insertchufangdrug.jsp">返回主界面</a></th></tr>
</table>
<br>
<hr>
<center><em><p style="background:yellow">Copyright &copy; 2020 TianYuan Web Hospital,Nuc.<h1></em></center>
</body>
</html>